package com.blueflamedev.effects.particles2
{
	import flash.display.Sprite;
	import flash.events.Event;

	public class Particles extends Sprite
	{
		private var _seed:Seed;
		private var _container:Sprite;
		
		public function Particles()
		{
			_container = new Sprite();
			addChild(_container);
			_container.x = 100;
			_container.y = 100;
			
			_seed = new Seed(_container, Box, 100, 200);
			_seed.start();
			
			addEventListener(Event.ADDED_TO_STAGE, onAdded);
		}
		
		private function onAdded(event:Event):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, onAdded);
			
			stage.scaleMode = "noScale";
			stage.align = "topLeft";
		}
	}
}
